home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Programming / MiniGL / include / mgl / modes.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-04-07  |  808 b   |  41 lines

  1. /*
  2.  * $Id: modes.h,v 1.1.1.1 2000/04/07 19:44:51 tfrieden Exp $
  3.  *
  4.  * $Date: 2000/04/07 19:44:51 $
  5.  * $Revision: 1.1.1.1 $
  6.  *
  7.  * (C) 1999 by Hyperion
  8.  * All rights reserved
  9.  *
  10.  * This file is part of the MiniGL library project
  11.  * See the file Licence.txt for more details
  12.  *
  13.  */
  14.  
  15. #ifndef __MGL_MODES_H
  16. #define __MGL_MODES_H
  17.  
  18. #include <Warp3D/Warp3D.h>
  19.  
  20. #define MGL_MAX_MODE 80
  21.  
  22. typedef struct
  23. {
  24.     GLint id;               // blackbox id used for mglCreateContextID()
  25.     GLint width,height;     // screenmode size
  26.     GLint bit_depth;        // depth of mode
  27.     char  mode_name[MGL_MAX_MODE]; // name for this mode
  28. } MGLScreenMode;
  29.  
  30. typedef struct
  31. {
  32.     ULONG width,height,depth;
  33.     ULONG pixel_format;
  34.     void *base_address;
  35.     ULONG pitch;
  36. } MGLLockInfo;
  37.  
  38. typedef GLboolean (*MGLScreenModeCallback)(MGLScreenMode *);
  39.  
  40. #endif
  41.